CREATE TABLE [dbo].[TMSACA_MENS]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_CAJA] [dbo].[TD_VC_008] NOT NULL,
[AA_CAJA] [dbo].[TD_VC_004] NOT NULL,
[MM_CAJA] [dbo].[TD_VC_002] NOT NULL,
[UL_CORR_INGR] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TMSACA_ME__UL_CO__2B9F624A] DEFAULT ((0)),
[UL_CORR_EGRE] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TMSACA_ME__UL_CO__2C938683] DEFAULT ((0)),
[IM_SALD_INIC] [dbo].[TD_NU_016_004] NOT NULL CONSTRAINT [DF__TMSACA_ME__IM_SA__2D87AABC] DEFAULT ((0)),
[UL_CORR_INEG] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TMSACA_ME__UL_CO__2E7BCEF5] DEFAULT ((0)),
[IM_INGR] [dbo].[TD_NU_016_004] NOT NULL CONSTRAINT [DF__TMSACA_ME__IM_IN__2F6FF32E] DEFAULT ((0)),
[TI_SITU] [dbo].[TD_VC_003] NULL,
[IM_EGRE] [dbo].[TD_NU_016_004] NOT NULL CONSTRAINT [DF__TMSACA_ME__IM_EG__30641767] DEFAULT ((0)),
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TMSACA_ME__CO_US__31583BA0] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TMSACA_ME__FE_US__324C5FD9] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TMSACA_ME__CO_US__33408412] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TMSACA_ME__FE_US__3434A84B] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TMSACA_MENS] ADD CONSTRAINT [PK__TMSACA_M__70746CF874E42A3D] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_CAJA], [AA_CAJA], [MM_CAJA]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TMSACA_MENS] ADD CONSTRAINT [FK__TMSACA_MENS__17593DD2] FOREIGN KEY ([CO_EMPR], [CO_CAJA]) REFERENCES [dbo].[TMCAJA] ([CO_EMPR], [CO_CAJA])
GO
